package com.huawei.testcloud.location;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.telephony.TelephonyManager;
import android.util.Log;

/**
 * Created by hasee-pc on 2017/8/3.
 */

public class SIMActivity extends AppCompatActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.sim_activity);
        TelephonyManager tm= (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
        Log.i("tm.getAllCellInfo()","tm.getAllCellInfo()="+tm.getAllCellInfo());
        Log.i("tm.getDeviceId()","tm.getDeviceId()="+tm.getDeviceId());
        Log.i("tm.getSoftwareVersion()","tm.getDeviceSoftwareVersion()="+tm.getDeviceSoftwareVersion());
        Log.i("tm.getLine1Number()","tm.getLine1Number()="+tm.getLine1Number());
        Log.i("tm.getSimCountryIso()","tm.getSimCountryIso()="+tm.getSimCountryIso());
        Log.i("tm.getSimOperator()","tm.getSimOperator()="+tm.getSimOperator());
        Log.i("tm.getSimOperatorName()","tm.getSimOperatorName()="+tm.getSimOperatorName());
        Log.i("tm.getSimSerialNumber()","tm.getSimSerialNumber()="+tm.getSimSerialNumber());
        Log.i("tm.getSimState()","tm.getSimState()="+tm.getSimState());
    }

}
